﻿using MetroDataApi.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MetroDataApi.Controllers
{
    public class ProjectStatusController : ApiController
    {
        public string Get(int prjId, bool partitial = true)
        {
            var list = partitial == true ? ProjectStatusHelper.GetPartitialStatusById(prjId) :
                ProjectStatusHelper.GetStatusById(prjId);
            return JsonConvert.SerializeObject(list);
        }
    }
}
